package cn.tedu.submarine;

import javax.swing.ImageIcon;

/**
 *水雷类
 */
public class Mine extends SeaObject{
    public Mine(int x,int y){
        super(22,22,x,y,2);
    }

    public void move(){
        setY(getY() - getSpeed());
    }

    public ImageIcon getImage(){
        return Images.mine;
    }

    public boolean isOutBounds(){
        return getY() <= -getHight();
    }
}
